<template>
  <div class="mnt-dialog form-container">
    <el-form ref="form" :model="formModel" label-width="160px" :rules="rules">
      <el-row style="text-align: center">
        <el-col :span="12">
          <el-form-item label="三包证书编号:" prop="threeGuaranteeNo">
            <el-input v-model="formModel.threeGuaranteeNo" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="整车物料编码:" prop="materialDataId">
            <el-select v-model="formModel.materialDataId" clearable filterable>
              <el-option
                v-for="item in carMaterialDataOptions"
                :key="item.materialDataId"
                :label="item.materialNo"
                :value="item.materialDataId"
              />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="邮政编码:" prop="yzbm">
            <el-input v-model="formModel.yzbm" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="客服电话:" prop="kfdh">
            <el-input v-model="formModel.kfdh" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="车辆名称:" prop="clmc">
            <el-input v-model="formModel.clmc" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="车辆规格:" prop="clgg">
            <el-input v-model="formModel.clgg" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="整车质量三包有效期:" prop="zczlsbyxq">
            <el-input v-model="formModel.zczlsbyxq" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="整车质量包修期:" prop="zczlbxq">
            <el-input v-model="formModel.zczlbxq" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="易损耗零部件的种类:" prop="yshlbjdzl">
            <el-input v-model="formModel.yshlbjdzl" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="易损耗零部件包修期:" prop="yshlbjbxq">
            <el-input v-model="formModel.yshlbjbxq" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="车身主要零部件1:" prop="cszylbj1">
            <el-input v-model="formModel.cszylbj1" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="车身主要零部件2:" prop="cszylbj2">
            <el-input v-model="formModel.cszylbj2" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="车身主要零部件3:" prop="cszylbj3">
            <el-input v-model="formModel.cszylbj3" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="车身主要零部件4:" prop="cszylbj4">
            <el-input v-model="formModel.cszylbj4" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="转向系统主要零部件1:" prop="zxxtzylbj1">
            <el-input v-model="formModel.zxxtzylbj1" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="转向系统主要零部件2:" prop="zxxtzylbj2">
            <el-input v-model="formModel.zxxtzylbj2" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="转向系统主要零部件3:" prop="zxxtzylbj3">
            <el-input v-model="formModel.zxxtzylbj3" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="转向系统主要零部件4:" prop="zxxtzylbj4">
            <el-input v-model="formModel.zxxtzylbj4" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="制动系统主要零部件1:" prop="zdxtzylbj1">
            <el-input v-model="formModel.zdxtzylbj1" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="制动系统主要零部件2:" prop="zdxtzylbj2">
            <el-input v-model="formModel.zdxtzylbj2" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="制动系统主要零部件3:" prop="zdxtzylbj3">
            <el-input v-model="formModel.zdxtzylbj3" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="制动系统主要零部件4:" prop="zdxtzylbj4">
            <el-input v-model="formModel.zdxtzylbj4" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="悬架系统主要零部件1:" prop="xjxtzylbj1">
            <el-input v-model="formModel.xjxtzylbj1" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="悬架系统主要零部件2:" prop="xjxtzylbj2">
            <el-input v-model="formModel.xjxtzylbj2" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="前/后桥主要 零部件1:" prop="qhqzylbj1">
            <el-input v-model="formModel.qhqzylbj1" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="前/后桥主要 零部件2:" prop="qhqzylbj2">
            <el-input v-model="formModel.qhqzylbj2" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="前/后桥主要 零部件3:" prop="qhqzylbj3">
            <el-input v-model="formModel.qhqzylbj3" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期1:" prop="bxq1">
            <el-input v-model="formModel.bxq1" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件1:" prop="tslj1">
            <el-input v-model="formModel.tslj1" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期2:" prop="bxq2">
            <el-input v-model="formModel.bxq2" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件2:" prop="tslj2">
            <el-input v-model="formModel.tslj2" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期3:" prop="bxq3">
            <el-input v-model="formModel.bxq3" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件3:" prop="tslj3">
            <el-input v-model="formModel.tslj3" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期4:" prop="bxq4">
            <el-input v-model="formModel.bxq4" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件4:" prop="tslj4">
            <el-input v-model="formModel.tslj4" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期5:" prop="bxq5">
            <el-input v-model="formModel.bxq5" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件5:" prop="tslj5">
            <el-input v-model="formModel.tslj5" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期6:" prop="bxq6">
            <el-input v-model="formModel.bxq6" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件6:" prop="tslj6">
            <el-input v-model="formModel.tslj6" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期7:" prop="bxq7">
            <el-input v-model="formModel.bxq7" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件7:" prop="tslj7">
            <el-input v-model="formModel.tslj7" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期8:" prop="bxq8">
            <el-input v-model="formModel.bxq8" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件8:" prop="tslj8">
            <el-input v-model="formModel.tslj8" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期9:" prop="bxq9">
            <el-input v-model="formModel.bxq9" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件9:" prop="tslj9">
            <el-input v-model="formModel.tslj9" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期10:" prop="bxq10">
            <el-input v-model="formModel.bxq10" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件10:" prop="tslj10">
            <el-input v-model="formModel.tslj10" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期11:" prop="bxq11">
            <el-input v-model="formModel.bxq11" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件11:" prop="tslj11">
            <el-input v-model="formModel.tslj11" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期12:" prop="bxq12">
            <el-input v-model="formModel.bxq12" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件12:" prop="tslj12">
            <el-input v-model="formModel.tslj12" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期13:" prop="bxq13">
            <el-input v-model="formModel.bxq13" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件13:" prop="tslj13">
            <el-input v-model="formModel.tslj13" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期14:" prop="bxq14">
            <el-input v-model="formModel.bxq14" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件14:" prop="tslj14">
            <el-input v-model="formModel.tslj14" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期15:" prop="bxq15">
            <el-input v-model="formModel.bxq15" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件15:" prop="tslj15">
            <el-input v-model="formModel.tslj15" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期16:" prop="bxq16">
            <el-input v-model="formModel.bxq16" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件16:" prop="tslj16">
            <el-input v-model="formModel.tslj16" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期17:" prop="bxq17">
            <el-input v-model="formModel.bxq17" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件17:" prop="tslj17">
            <el-input v-model="formModel.tslj17" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期18:" prop="bxq18">
            <el-input v-model="formModel.bxq18" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件18:" prop="tslj18">
            <el-input v-model="formModel.tslj18" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期19:" prop="bxq19">
            <el-input v-model="formModel.bxq19" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件19:" prop="tslj19">
            <el-input v-model="formModel.tslj19" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期20:" prop="bxq20">
            <el-input v-model="formModel.bxq20" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件20:" prop="tslj20">
            <el-input v-model="formModel.tslj20" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期21:" prop="bxq21">
            <el-input v-model="formModel.bxq21" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件21:" prop="tslj21">
            <el-input v-model="formModel.tslj21" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期22:" prop="bxq22">
            <el-input v-model="formModel.bxq22" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件22:" prop="tslj22">
            <el-input v-model="formModel.tslj22" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期23:" prop="bxq23">
            <el-input v-model="formModel.bxq23" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件23:" prop="tslj23">
            <el-input v-model="formModel.tslj23" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期24:" prop="bxq24">
            <el-input v-model="formModel.bxq24" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件24:" prop="tslj24">
            <el-input v-model="formModel.tslj24" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期25:" prop="bxq25">
            <el-input v-model="formModel.bxq25" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件25:" prop="tslj25">
            <el-input v-model="formModel.tslj25" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期26:" prop="bxq26">
            <el-input v-model="formModel.bxq26" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件26:" prop="tslj26">
            <el-input v-model="formModel.tslj26" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期27:" prop="bxq27">
            <el-input v-model="formModel.bxq27" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件27:" prop="tslj27">
            <el-input v-model="formModel.tslj27" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期28:" prop="bxq28">
            <el-input v-model="formModel.bxq28" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件28:" prop="tslj28">
            <el-input v-model="formModel.tslj28" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期29:" prop="bxq29">
            <el-input v-model="formModel.bxq29" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件29:" prop="tslj29">
            <el-input v-model="formModel.tslj29" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期30:" prop="bxq30">
            <el-input v-model="formModel.bxq30" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件30:" prop="tslj30">
            <el-input v-model="formModel.tslj30" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期31:" prop="bxq31">
            <el-input v-model="formModel.bxq31" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件31:" prop="tslj31">
            <el-input v-model="formModel.tslj31" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期32:" prop="bxq32">
            <el-input v-model="formModel.bxq32" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件32:" prop="tslj32">
            <el-input v-model="formModel.tslj32" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期33:" prop="bxq33">
            <el-input v-model="formModel.bxq33" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件33:" prop="tslj33">
            <el-input v-model="formModel.tslj33" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期34:" prop="bxq34">
            <el-input v-model="formModel.bxq34" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件34:" prop="tslj34">
            <el-input v-model="formModel.tslj34" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期35:" prop="bxq35">
            <el-input v-model="formModel.bxq35" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件35:" prop="tslj35">
            <el-input v-model="formModel.tslj35" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期36:" prop="bxq36">
            <el-input v-model="formModel.bxq36" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件36:" prop="tslj36">
            <el-input v-model="formModel.tslj36" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期37:" prop="bxq37">
            <el-input v-model="formModel.bxq37" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件37:" prop="tslj37">
            <el-input v-model="formModel.tslj37" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期38:" prop="bxq38">
            <el-input v-model="formModel.bxq38" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件38:" prop="tslj38">
            <el-input v-model="formModel.tslj38" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期39:" prop="bxq39">
            <el-input v-model="formModel.bxq39" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件39:" prop="tslj39">
            <el-input v-model="formModel.tslj39" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期40:" prop="bxq40">
            <el-input v-model="formModel.bxq40" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件40:" prop="tslj40">
            <el-input v-model="formModel.tslj40" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期41:" prop="bxq41">
            <el-input v-model="formModel.bxq41" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件41:" prop="tslj41">
            <el-input v-model="formModel.tslj41" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期42:" prop="bxq42">
            <el-input v-model="formModel.bxq42" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件42:" prop="tslj42">
            <el-input v-model="formModel.tslj42" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期43:" prop="bxq43">
            <el-input v-model="formModel.bxq43" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件43:" prop="tslj43">
            <el-input v-model="formModel.tslj43" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期44:" prop="bxq44">
            <el-input v-model="formModel.bxq44" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件44:" prop="tslj44">
            <el-input v-model="formModel.tslj44" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期45:" prop="bxq45">
            <el-input v-model="formModel.bxq45" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件45:" prop="tslj45">
            <el-input v-model="formModel.tslj45" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期46:" prop="bxq46">
            <el-input v-model="formModel.bxq46" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件46:" prop="tslj46">
            <el-input v-model="formModel.tslj46" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期47:" prop="bxq47">
            <el-input v-model="formModel.bxq47" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件47:" prop="tslj47">
            <el-input v-model="formModel.tslj47" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期48:" prop="bxq48">
            <el-input v-model="formModel.bxq48" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件48:" prop="tslj48">
            <el-input v-model="formModel.tslj48" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期49:" prop="bxq49">
            <el-input v-model="formModel.bxq49" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件49:" prop="tslj49">
            <el-input v-model="formModel.tslj49" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期50:" prop="bxq50">
            <el-input v-model="formModel.bxq50" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件50:" prop="tslj50">
            <el-input v-model="formModel.tslj50" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期51:" prop="bxq51">
            <el-input v-model="formModel.bxq51" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件51:" prop="tslj51">
            <el-input v-model="formModel.tslj51" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期52:" prop="bxq52">
            <el-input v-model="formModel.bxq52" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件52:" prop="tslj52">
            <el-input v-model="formModel.tslj52" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期53:" prop="bxq53">
            <el-input v-model="formModel.bxq53" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件53:" prop="tslj53">
            <el-input v-model="formModel.tslj53" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期54:" prop="bxq54">
            <el-input v-model="formModel.bxq54" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件54:" prop="tslj54">
            <el-input v-model="formModel.tslj54" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期55:" prop="bxq55">
            <el-input v-model="formModel.bxq55" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件55:" prop="tslj55">
            <el-input v-model="formModel.tslj55" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="包修期56:" prop="bxq56">
            <el-input v-model="formModel.bxq56" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="特殊零件56:" prop="tslj56">
            <el-input v-model="formModel.tslj56" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="状态:" prop="status">
            <hey-select v-model="formModel.status" clcd="is_effective_cd" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-row class="submit-area">
      <el-col :span="24">
        <el-button @click="closeDialog">取消</el-button>
        <el-button type="primary" @click="handleSubmit()">确定</el-button>
      </el-col>
    </el-row>
  </div>
</template>

<script>

export default {
  name: 'FuelMnt',
  props: ['pageType', 'editData'],
  data() {
    return {
      // 整车物料编码列表
      carMaterialDataOptions: [],
      formModel: {
        threeGuaranteeId: '',
        threeGuaranteeNo: '',
        materialDataId: '',
        yzbm: '',
        kfdh: '',
        clmc: '',
        clgg: '',
        zczlsbyxq: '',
        zczlbxq: '',
        yshlbjdzl: '',
        yshlbjbxq: '',
        cszylbj1: '',
        cszylbj2: '',
        cszylbj3: '',
        cszylbj4: '',
        zxxtzylbj1: '',
        zxxtzylbj2: '',
        zxxtzylbj3: '',
        zxxtzylbj4: '',
        zdxtzylbj1: '',
        zdxtzylbj2: '',
        zdxtzylbj3: '',
        zdxtzylbj4: '',
        xjxtzylbj1: '',
        xjxtzylbj2: '',
        qhqzylbj1: '',
        qhqzylbj2: '',
        qhqzylbj3: '',
        bxq1: '',
        tslj1: '',
        bxq2: '',
        tslj2: '',
        bxq3: '',
        tslj3: '',
        bxq4: '',
        tslj4: '',
        bxq5: '',
        tslj5: '',
        bxq6: '',
        tslj6: '',
        bxq7: '',
        tslj7: '',
        bxq8: '',
        tslj8: '',
        bxq9: '',
        tslj9: '',
        bxq10: '',
        tslj10: '',
        bxq11: '',
        tslj11: '',
        bxq12: '',
        tslj12: '',
        bxq13: '',
        tslj13: '',
        bxq14: '',
        tslj14: '',
        bxq15: '',
        tslj15: '',
        bxq16: '',
        tslj16: '',
        bxq17: '',
        tslj17: '',
        bxq18: '',
        tslj18: '',
        bxq19: '',
        tslj19: '',
        bxq20: '',
        tslj20: '',
        bxq21: '',
        tslj21: '',
        bxq22: '',
        tslj22: '',
        bxq23: '',
        tslj23: '',
        bxq24: '',
        tslj24: '',
        bxq25: '',
        tslj25: '',
        bxq26: '',
        tslj26: '',
        bxq27: '',
        tslj27: '',
        bxq28: '',
        tslj28: '',
        bxq29: '',
        tslj29: '',
        bxq30: '',
        tslj30: '',
        bxq31: '',
        tslj31: '',
        bxq32: '',
        tslj32: '',
        bxq33: '',
        tslj33: '',
        bxq34: '',
        tslj34: '',
        bxq35: '',
        tslj35: '',
        bxq36: '',
        tslj36: '',
        bxq37: '',
        tslj37: '',
        bxq38: '',
        tslj38: '',
        bxq39: '',
        tslj39: '',
        bxq40: '',
        tslj40: '',
        bxq41: '',
        tslj41: '',
        bxq42: '',
        tslj42: '',
        bxq43: '',
        tslj43: '',
        bxq44: '',
        tslj44: '',
        bxq45: '',
        tslj45: '',
        bxq46: '',
        tslj46: '',
        bxq47: '',
        tslj47: '',
        bxq48: '',
        tslj48: '',
        bxq49: '',
        tslj49: '',
        bxq50: '',
        tslj50: '',
        bxq51: '',
        tslj51: '',
        bxq52: '',
        tslj52: '',
        bxq53: '',
        tslj53: '',
        bxq54: '',
        tslj54: '',
        bxq55: '',
        tslj55: '',
        bxq56: '',
        tslj56: '',
        status: '1'
      },
      // 老数据
      oldFormModel: {
      },
      rules: {}
    }
  },
  computed: {},
  mounted() {
    this.init()
    this.getCarMaterialDataOptions()
  },
  methods: {
    init() {
      this.$form = this.$refs.form
      const { pageType, editData, formModel } = this
      if (pageType !== 'add') {
        this.assignData(editData, formModel)
        this.oldFormModel = JSON.parse(JSON.stringify(this.formModel))
      }
      this.initRules()
    },
    initRules() {
      const REQUIRED_MSG = this.CONST.REQUIRED_MSG
      this.rules = {
        materialDataId: [{ required: true, message: REQUIRED_MSG, trigger: ['change', 'blur'] }],
        yzbm: [{ required: true, message: REQUIRED_MSG, trigger: ['change', 'blur'] }],
        qyrq: [{ required: true, message: REQUIRED_MSG, trigger: ['change', 'blur'] }],
        kfdh: [{ required: true, message: REQUIRED_MSG, trigger: ['change', 'blur'] }],
        status: [{ required: true, message: REQUIRED_MSG, trigger: ['change', 'blur'] }]
      }
      this.$nextTick(_ => {
        this.$form.clearValidate()
      })
    },
    // 获取整车物料编号列表
    getCarMaterialDataOptions() {
      const param = { materialTypeKey: 'car', status: '1' }
      this.get('/materialData/listMaterialData', param).then(res => {
        this.carMaterialDataOptions = res
      })
    },
    // 提交新增或修改
    handleSubmit() {
      this.$refs.form.validate(valid => {
        if (valid) {
          if (this.formModel.threeGuaranteeId !== '') {
            // 判断是否修改
            if (JSON.stringify(this.formModel) !== JSON.stringify(this.oldFormModel)) {
              const tip = '修改成功！'
              const url = '/threeGuarantee/update'
              this.post(url, this.formModel).then(res => {
                this.$info(tip, () => {
                  this.$emit('mntSuc', res)
                  this.closeDialog()
                })
              })
            } else {
              this.$emit('mntSuc')
              this.closeDialog()
            }
          } else {
            const url = '/threeGuarantee/save'
            this.post(url, this.formModel).then(res => {
              const tip = '新增成功！'
              this.$info(tip, () => {
                this.$emit('mntSuc', res)
                this.closeDialog()
              })
            })
          }
        }
      })
    },
    closeDialog() {
      this.$parent.$emit('update:visible', false)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
